<template>
  <fieldset>
    <legend>其他组件1</legend>
    <button @click="openModal">点击显示模态框</button>
    <Modal :visable="isShow" @on-success="success" @on-cancel="cancel">
      <template v-slot:tip>
        <h1>提示</h1>
      </template>
      <template v-slot:content>
        <h2>是否购买这辆保时捷</h2>
      </template>
    </Modal>
  </fieldset>
</template>

<script>
import Modal from "../modal/index.vue";
import modalMix from "../mixuns/modal";
export default {
  mixins: [modalMix], //固定写法
  components: {
    Modal,
  },
};
</script>
